-- GENERATED SPELL FOR [Shandaral Warrior Spirit] --


function spell0_30865(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(57846,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30865', 593, 1)
end

function spell1_30865(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(38233,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30865', 8271, 1)
end

function Sorts_30865(pUnit, Event)
local choix_sorts_30865 = math.random(0, 1)
if choix_sorts_30865 == 0 then
pUnit:RegisterEvent('spell0_30865', 1, 1)
end
if choix_sorts_30865 == 1 then
pUnit:RegisterEvent('spell1_30865', 1, 1)
end
end

function mob30865_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30865', math.random(1500, 3000), 1)
end

function mob30865_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30865_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30865_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30865, 1, 'mob30865_Action')
RegisterUnitEvent(30865, 2, 'mob30865_Leave')
RegisterUnitEvent(30865, 3, 'mob30865_Kill')
RegisterUnitEvent(30865, 4, 'mob30865_Die')
